package com.qf.service.impl;

import com.qf.entity.Landlord;
import com.qf.mapper.LandlordMapper;
import com.qf.service.LandlordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LandlordServiceImpl implements LandlordService {
    @Autowired
    private LandlordMapper mapper;

    @Override
    public List<Landlord> findAll(Landlord landlord) {
        return mapper.findAll(landlord);
    }

    @Override
    public void addLandlord(Landlord landlord) {
        mapper.addLandlord(landlord);
    }

    @Override
    public void updateLandlord(Landlord landlord) {
        mapper.updateLandlord(landlord);
    }

    @Override
    public void deleteLandlord(Integer id) {
        mapper.deleteLandlord(id);
    }
}
